CC = gcc
CFLAGS = -Wall -Wextra
LDFLAGS = -luv

TARGET = uvcat
TARGET_OPT = uvcat-optimized
SRC = main.c
SRC_OPT = main_optimized.c

.PHONY: all clean

all: $(TARGET) $(TARGET_OPT)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

$(TARGET_OPT): $(SRC_OPT)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

clean:
	rm -f $(TARGET) $(TARGET_OPT) 